//
//  Caculator.h
//  4-函数式编程思想
//
//  Created by J on 16/2/18.
//  Copyright © 2016年 J. All rights reserved.
//  计算

#import <Foundation/Foundation.h>

@interface Caculator : NSObject
@property(nonatomic,assign)NSInteger result;
@property(nonatomic,assign)BOOL isEqual;


- (instancetype)add:(NSUInteger(^)(NSUInteger num))block;

- (instancetype)equal:(BOOL(^)(NSInteger result))block;
@end
